<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>เพิ่มข้อมูลอาจารย์</title>




<style type="text/css">
.body {
}
#boxuser{
	background-color: #444041;
	height: auto;
	width: 760px;
}
body,td,th {
	color: #FFF;
}
</style>
</head>

<body>


<div id="boxuser">
<form action="?module=admin&page=add_subject" method="post" enctype="multipart/form-data" name="frm_subject" id="frm_subject">
  <table width="760" border="0" align="center" cellpadding="0" cellspacing="0" id="show_menu">
    
    <tr>
      <th height="35" colspan="3" align="center" bgcolor="#999999">กรุณากรอกข้อมูลวิชาเรียน</th>
    </tr>
    
    <tr>
      <td width="359" height="35" align="right" bgcolor="#999999"><table width="50%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <th width="6%" height="33" scope="col">&nbsp;</th>
          <td width="94%" align="left" scope="col"><span class="style_1">รหัสวิชา</span></td>
        </tr>
      </table></td>
      <td width="10" height="35" bgcolor="#999999">:</td>
      <td width="390" height="35" bgcolor="#999999"><span class="style_1">
        <input name="subject_id" type="text" id="subject_id" size="30" maxlength="40" />
      </span></td>
    </tr>
    <tr>
      <td height="35" align="right" bgcolor="#999999"><table width="50%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <th width="6%" height="31" scope="col">&nbsp;</th>
          <td width="94%" align="left" scope="col"><span class="style_1">ชื่อวิชา</span></td>
        </tr>
      </table></td>
      <td height="35" bgcolor="#999999">:</td>
      <td height="35" bgcolor="#999999"><span class="style_1">
        <input name="subject_name" type="text" id="subject_name" size="30" maxlength="80" />
      </span></td>
    </tr>
    <tr>
      <td height="35" align="right" bgcolor="#999999"><table width="50%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <th width="6%" height="30" scope="col">&nbsp;</th>
          <td width="94%" align="left" scope="col"><span class="style_1">คำอธิบายรายวิชา</span></td>
        </tr>
      </table></td>
      <td height="35" bgcolor="#999999">:</td>
      <td height="35" bgcolor="#999999"><a id="frm_detail-botton" style="cursor:pointer;">เพิ่มคำอธิบายรายวิชา</a><textarea name="subject_detail" id="subject_detail" cols="60" rows="30" style="display:none;"></textarea></td>
    </tr>
    <tr>
      <td height="35" bgcolor="#999999">&nbsp;</td>
      <td height="35" bgcolor="#999999">&nbsp;</td>
      <td height="40" bgcolor="#999999"><span class="style_1">
        <input type="submit" name="Submit" id="Submit" value=" บันทึก  " />
      </span></td>
    </tr>
    <tr>
      <td height="36" bgcolor="#999999">&nbsp;</td>
      <td bgcolor="#999999">&nbsp;</td>
      <td bgcolor="#999999">&nbsp;</td>
    </tr>
  </table>
  
  <p>&nbsp;</p>
</form>
</div>
<script>
$(function(){
	$("#frm_detail-botton").one('click',function(event){
		event.preventDefault();
		$(this).slideUp();
		$("textarea[name=subject_detail]").slideDown();
		return false;
	});
});
</script>
</body>
</html>